home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / java / awt / BufferCapabilities.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.2 KB  |  50 lines

  1. package java.awt;
  2.  
  3. public class BufferCapabilities implements Cloneable {
  4.    private ImageCapabilities frontCaps;
  5.    private ImageCapabilities backCaps;
  6.    private FlipContents flipContents;
  7.  
  8.    public BufferCapabilities(ImageCapabilities var1, ImageCapabilities var2, FlipContents var3) {
  9.       if (var1 != null && var2 != null) {
  10.          this.frontCaps = var1;
  11.          this.backCaps = var2;
  12.          this.flipContents = var3;
  13.       } else {
  14.          throw new IllegalArgumentException("Image capabilities specified cannot be null");
  15.       }
  16.    }
  17.  
  18.    public ImageCapabilities getFrontBufferCapabilities() {
  19.       return this.frontCaps;
  20.    }
  21.  
  22.    public ImageCapabilities getBackBufferCapabilities() {
  23.       return this.backCaps;
  24.    }
  25.  
  26.    public boolean isPageFlipping() {
  27.       return this.getFlipContents() != null;
  28.    }
  29.  
  30.    public FlipContents getFlipContents() {
  31.       return this.flipContents;
  32.    }
  33.  
  34.    public boolean isFullScreenRequired() {
  35.       return false;
  36.    }
  37.  
  38.    public boolean isMultiBufferAvailable() {
  39.       return false;
  40.    }
  41.  
  42.    public Object clone() {
  43.       try {
  44.          return super.clone();
  45.       } catch (CloneNotSupportedException var2) {
  46.          throw new InternalError();
  47.       }
  48.    }
  49. }
  50.